package com.sun.customer.controller;

import com.sun.customer.service.TestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yingsy on 2021-01-22.
 */
@RestController
@RequestMapping("local")
public class LocalTransactionTestController {

    @Autowired
    private TestServiceImpl testService;

    @GetMapping("test1")
    public String test1(@RequestParam("num") Integer num){
        return testService.test1(num);
    }

    @GetMapping("test2")
    public String test2(@RequestParam("num") Integer num){
        return testService.test2(num);
    }

    @GetMapping("test3")
    public String test3(@RequestParam("num") Integer num){
        return testService.test3(num);
    }
}
